from django import template

register = template.Library()

def score_colour(score):
	if score >= 90:
	  	return 'bar-success'
	elif score >= 75:
	  	return 'bar-warning'
	else:
	  	return 'bar-danger'

register.simple_tag(score_colour)